﻿using Newtonsoft.Json;
using ZZDingTalkSDK.ZZDingTalkRequest.Common;
using ZZDingTalkSDK.ZZDingTalkResponse;
using ZZDingTalkSDK.ZZDingTalkResponse.common;

namespace ZZDingTalkSDK.ZZDingTalkRequest
{
    public class MediaUploadRequest : IZZDRequest<ZZDingTalkResponseContent<MediaUploadResponse>>
    {
        [JsonProperty("access_token")]
        public string? AccessToken { get; set; }

        [JsonProperty("type")]
        public string? Type { get; set; }

        public string GetApiName()
        {
            return "/media/upload?access_token=" + AccessToken;
        }
    }
}